package com.fyb.lock;

import java.util.concurrent.atomic.LongAdder;

public class A {
    //private Integer num = 0;
    //AtomicInteger atomicInteger = new AtomicInteger();
    LongAdder longAdder = new LongAdder();

    public  void increase() {

        //num++;
        //atomicInteger.incrementAndGet();

        longAdder.increment();
    }


    public long getNum() {
        //return num;
        //return  atomicInteger.get();
        return longAdder.longValue();
    }
}
